Go back to old style of drawing children over the bevel. (#58615)
authorOwen Taylor <otaylor@redhat.com>
Wed, 27 Feb 2002 19:48:30 +0000 (19:48 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 27 Feb 2002 19:48:30 +0000 (19:48 +0000)
Wed Feb 27 14:45:21 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Go
        back to old style of drawing children over the bevel.
        (#58615)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktoolbar.c

index ae42ff1dcc4ff56249c39c15b7dd09f74759f6a0..a1707ecebe41e9cd78d4364c4eabce1edd2ecdec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Feb 27 14:45:21 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Go
+       back to old style of drawing children over the bevel.
+       (#58615)
+
 Wed Feb 27 14:08:26 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/imxim.c: Add ko and zh to the locales
index ae42ff1dcc4ff56249c39c15b7dd09f74759f6a0..a1707ecebe41e9cd78d4364c4eabce1edd2ecdec 100644 (file)
@@ -1,3 +1,9 @@
+Wed Feb 27 14:45:21 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Go
+       back to old style of drawing children over the bevel.
+       (#58615)
+
 Wed Feb 27 14:08:26 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/imxim.c: Add ko and zh to the locales
index ae42ff1dcc4ff56249c39c15b7dd09f74759f6a0..a1707ecebe41e9cd78d4364c4eabce1edd2ecdec 100644 (file)
@@ -1,3 +1,9 @@
+Wed Feb 27 14:45:21 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Go
+       back to old style of drawing children over the bevel.
+       (#58615)
+
 Wed Feb 27 14:08:26 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/imxim.c: Add ko and zh to the locales
index ae42ff1dcc4ff56249c39c15b7dd09f74759f6a0..a1707ecebe41e9cd78d4364c4eabce1edd2ecdec 100644 (file)
@@ -1,3 +1,9 @@
+Wed Feb 27 14:45:21 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Go
+       back to old style of drawing children over the bevel.
+       (#58615)
+
 Wed Feb 27 14:08:26 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/imxim.c: Add ko and zh to the locales
index ae42ff1dcc4ff56249c39c15b7dd09f74759f6a0..a1707ecebe41e9cd78d4364c4eabce1edd2ecdec 100644 (file)
@@ -1,3 +1,9 @@
+Wed Feb 27 14:45:21 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Go
+       back to old style of drawing children over the bevel.
+       (#58615)
+
 Wed Feb 27 14:08:26 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/imxim.c: Add ko and zh to the locales
index ae42ff1dcc4ff56249c39c15b7dd09f74759f6a0..a1707ecebe41e9cd78d4364c4eabce1edd2ecdec 100644 (file)
@@ -1,3 +1,9 @@
+Wed Feb 27 14:45:21 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Go
+       back to old style of drawing children over the bevel.
+       (#58615)
+
 Wed Feb 27 14:08:26 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/imxim.c: Add ko and zh to the locales
index ae42ff1dcc4ff56249c39c15b7dd09f74759f6a0..a1707ecebe41e9cd78d4364c4eabce1edd2ecdec 100644 (file)
@@ -1,3 +1,9 @@
+Wed Feb 27 14:45:21 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Go
+       back to old style of drawing children over the bevel.
+       (#58615)
+
 Wed Feb 27 14:08:26 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/imxim.c: Add ko and zh to the locales
index ac6d1d14b74300fe8412afc35b3c327b6985611b..222b65daeef6f36cf26d198e76d43b6c16197a75 100644 (file)
@@ -657,8 +657,8 @@ gtk_toolbar_size_request (GtkWidget      *widget,
   /* Extra spacing */
   gtk_widget_style_get (widget, "internal_padding", &ipadding, NULL);
   
-  requisition->width += 2 * (widget->style->xthickness + ipadding);
-  requisition->height += 2 * (widget->style->ythickness + ipadding);
+  requisition->width += 2 * ipadding;
+  requisition->height += 2 * ipadding;
   
   toolbar->button_maxw = button_maxw;
   toolbar->button_maxh = button_maxh;
@@ -689,8 +689,8 @@ gtk_toolbar_size_allocate (GtkWidget     *widget,
 
   gtk_widget_style_get (widget, "internal_padding", &ipadding, NULL);
   
-  x_border_width += 2 * (widget->style->xthickness + ipadding);
-  y_border_width += 2 * (widget->style->ythickness + ipadding);
+  x_border_width += ipadding;
+  y_border_width += ipadding;
   
   if (toolbar->orientation == GTK_ORIENTATION_HORIZONTAL)
     alloc.x = allocation->x + x_border_width;